<script>
    $(function() {
        $("#birthday" ).datepicker({ dateFormat: 'mm-dd-yy' , changeMonth: true,
			changeYear: true});
    });
</script>
<?php include("menu.phtml"); ?>
<div id="content2">
	<table class="content">
		<tr>
			<td>
				<h1>Update '<?php echo $this->actor['Name']; ?>'</h1>
				<form enctype="multipart/form-data" name="actor" action="<?php echo $this->baseUrl; ?>/Administration/index/" method="post">
				      <input type="hidden" name="form" value="7" />
				  	<input type="hidden" name="Actor_ID" value="<?php echo $this->actor['Actor_ID']; ?>" />
				      
				    <label>Name</label><br />
				    <input type="text" id="Name" name="name" value="<?php echo $this->actor['Name']; ?>"/>
				    <br /><br />
				
				    <label>Birthday</label><br />
				    <input type="text" name="birthday" id="birthday" value="<?php echo date("m-d-Y",strtotime($this->actor['Birthday'])); ?>">
				    <br /><br />
				    
				
				    <label>Picture</label><br />
				    <input type="hidden" value="<?php echo $this->actor['Picture']; ?>" name="picture" /> 
				    <img src="<?php echo $this->baseUrl; ?>/pictures/<?php echo $this->actor['Picture']; ?>" style="max-height: 100px; max-width: 100px;"/>
				    
				    <input type="file" name="newpicture" />
				    <br /><br />
				    <input type="submit" />
				    

				</form>
			</td>
		</tr>
	</table>
</div>